package com.appkubes.portal.admin.application.config;

import com.appkubes.common.Response;
import com.appkubes.portal.core.controller.BasePortalGlobalAppMenuController;
import com.appkubes.portal.core.entity.PortalGlobalApp;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Api(tags = "配置-应用")
@RequestMapping("/config/app")
public class ConfigAppController extends BasePortalGlobalAppMenuController {


    @ApiOperation("获取所有的应用")
    @GetMapping("/getAll")
    public Response getAll() {
        PortalGlobalApp configApp = new PortalGlobalApp();
        return Response.success(this.selectListByEntity(configApp));
    }

}
